package lhdx11;

public class MobilePhone {
    private String brand;
    private int  price;

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public MobilePhone(String brand, int price) {
        this.brand = brand;
        this.price = price;
    }
    public void show(){
        System.out.println("这是一台"+brand+"手机，价格在："+price+"元。");
    }
    public void use(){
        System.out.println("手机开始发送消息。。。。。。");
    }
    public void tongH(){
        System.out.println("手机开始通电话。。。。。");
        System.out.println("手机结束通电话。。。。。");
    }
}
